﻿using Logs;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using User.Repositories.Repository.Interfaces;

namespace LDM.Sys.Service.Controllers.Base
{
    /// <summary>
    /// 初始化服务
    /// </summary>
    [ApiController]
    [Route("[Controller]/[action]"), Produces("application/json")]
    [AllowAnonymous]
    public class InItController : Controller
    {
        private readonly IWxAccountRepository _userRepository;
        private readonly ILog _log;
        public InItController(ILog log, IWxAccountRepository userRepository)
        {
            _userRepository = userRepository;
            _log = log;
        }
        /// <summary>
        ///初始化表结构
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        public IActionResult CreateTable()
        {
            _userRepository.CreateTable();
            return Ok("Success");
        }
    }
}
